icrate 0.0.3

Bindings to Apple's frameworks
docs.rs failed to build icrate-0.0.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: icrate-0.1.2

icrate

Latest version License Documentation CI

Rust bindings to Apple's frameworks..

This crate is part of the objc2 project, see that for related crates, or see the docs for more details.

Supported versions

These bindings are automatically generated from the SDKs in Xcode 14.2 (will be periodically updated).

Currently supports:

  • macOS: 10.7-13.1
  • iOS/iPadOS: 7.0-16.2 (WIP)
  • tvOS: 9.0-16.1 (WIP)
  • watchOS: 1.0-9.1 (WIP)

Example

use icrate::Foundation::{NSCopying, NSArray};
use icrate::ns_string;

let string = ns_string!("world");
println!("hello {string}");

let array = NSArray::from_id_slice(&[string.copy()]);
println!("{array:?}");

More examples are available in the repository.